package com.example.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@SpringBootApplication
//@EnableAspectJAutoProxy
public class SpringbootApplication {

  public static void main(String[] args) {
    ConfigurableApplicationContext context = SpringApplication.run(SpringbootApplication.class, args);
    String username = context.getEnvironment().getProperty("jdbc.root.user");
    String password = context.getEnvironment().getProperty("jdbc.root.password");
    System.out.println("username==="+username);
    System.out.println("password==="+password);
//    context.close();
  }

}
